<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<p id='p'>Hello Word!</p>
		<img id="img" src="https://gitee.com/static/images/logo-black.svg?t=158106664"/>
		
		<script>
			//输出信息
			document.write("今天的日期是: "+new Date());
			//替换文本
			document.getElementById("p").innerHTML="新文本";
			//替换属性
			document.getElementById("img").src = ""
		</script>
	</body>
</html>